/*package coolq.yaozhenyong.controller;

import com.forte.qqrobot.anno.Filter;
import com.forte.qqrobot.anno.Listen;
import com.forte.qqrobot.anno.depend.Beans;
import com.forte.qqrobot.beans.messages.msgget.FriendAdd;
import com.forte.qqrobot.beans.messages.msgget.FriendAddRequest;
import com.forte.qqrobot.beans.messages.msgget.GroupAddRequest;
import com.forte.qqrobot.beans.messages.msgget.GroupAdminChange;
import com.forte.qqrobot.beans.messages.msgget.GroupMemberIncrease;
import com.forte.qqrobot.beans.messages.msgget.GroupMemberReduce;
import com.forte.qqrobot.beans.messages.msgget.GroupMsg;
import com.forte.qqrobot.beans.messages.msgget.PrivateMsg;
import com.forte.qqrobot.beans.messages.result.BanList;
import com.forte.qqrobot.beans.messages.result.FriendList;
import com.forte.qqrobot.beans.messages.result.GroupInfo;
import com.forte.qqrobot.beans.messages.result.GroupLinkList;
import com.forte.qqrobot.beans.messages.result.GroupList;
import com.forte.qqrobot.beans.messages.result.GroupMemberInfo;
import com.forte.qqrobot.beans.messages.result.GroupMemberList;
import com.forte.qqrobot.beans.messages.result.GroupNoteList;
import com.forte.qqrobot.beans.messages.result.GroupTopNote;
import com.forte.qqrobot.beans.messages.result.LoginQQInfo;
import com.forte.qqrobot.beans.messages.result.ShareList;
import com.forte.qqrobot.beans.messages.result.StrangerInfo;
import com.forte.qqrobot.beans.messages.result.inner.GroupLink;
import com.forte.qqrobot.beans.messages.types.GroupAddRequestType;
import com.forte.qqrobot.beans.messages.types.MsgGetTypes;
import com.forte.qqrobot.sender.MsgSender;

@Beans
public class TestController {
	*//***
	 * 私聊消息
	 *//*
	@Listen(MsgGetTypes.privateMsg)
	@Filter
	public void grouptest(PrivateMsg msg,MsgSender sender) {
		System.out.println("私聊消息");
		switch (msg.getMsg()) {
		case "发送名片赞"://生效
			sender.SENDER.sendLike("936642284", 10);
			break;
		default:
			break;
		}
	}
	
	*//***
	 * 讨论组消息消息
	 *//*
	@Listen(MsgGetTypes.discussMsg)
	@Filter
	public void discussMsg() {
		System.out.println("讨论组消息消息");
	}
	*//***
	 * 	群消息
	 *//*
	@Listen(MsgGetTypes.groupMsg)
	@Filter
	public void groupMsg(GroupMsg msg,MsgSender sender) {
		System.out.println("群消息");
		switch (msg.getMsg()) {
		case "送花"://感觉没用
			sender.SENDER.sendFlower("719190458", "936642284");
			break;
		case "成员禁言"://ok
			sender.SETTER.setGroupBan("719190458", "936642284",(long) 0);
			break;
		case "设置群成员名片"://ok
			sender.SETTER.setGroupCard("719190458", "936642284","统一修改");
			break;
		case "退出群":
			sender.SETTER.setGroupLeave("719190458");
			break;
		case "踢出群成员"://ok
			sender.SETTER.setGroupMemberKick("719190458","1260422870",false);
			break;
		case "群签到"://ok
			sender.SETTER.setGroupSign("719190458");
			break;
		case "群成员专属头衔"://ok
			sender.SETTER.setGroupExclusiveTitle("719190458","1260422870","你很强",(long) 3000);
			break;
		case "全群禁言":
			sender.SETTER.setGroupWholeBan("719190458",true);
			break;
		case "解除全群禁言":
			sender.SETTER.setGroupWholeBan("719190458",false);
			break;
		case "消息撤回"://消息撤回
			System.out.println(msg.getOriginalData());
			
			sender.SETTER.setMsgRecall(msg.getFont());
			sender.SETTER.setMsgRecall(msg.getMsg());
			break;
		case "打卡":
			sender.SETTER.setSign();
			break;
		default:
			break;
		}
		System.out.println(msg.getGroup());
		switch (msg.getMsg()) {
		case "测试1"://有效
			System.out.println("获取封禁成员");
			BanList banList = sender.GETTER.getBanList(msg.getGroup());
			break;
		case "测试2"://无效
			System.out.println("获取好友列表");
			FriendList friendList = sender.GETTER.getFriendList();
			break;
		case "测试3"://有效
			System.out.println("获取群信息");
			GroupInfo groupInfo = sender.GETTER.getGroupInfo(msg.getGroup());
			break;

		case "测试4"://有效
			System.out.println("获取群链接列表");
			 GroupLinkList groupLinkList = sender.GETTER.getGroupLinkList(msg.getGroup());
			 
			 System.out.println(groupLinkList.getOriginalData());
			 break;

		case "测试5"://有效
			System.out.println("获取群列表");
			GroupList groupList = sender.GETTER.getGroupList();
			break;

		case "测试6"://有效 会直接导致程序卡死
			System.out.println("获取群成员信息");
			GroupMemberInfo groupMemberInfo = sender.GETTER.getGroupMemberInfo(msg.getGroup(), msg.getQQ());
			System.out.println(groupMemberInfo.getQQ()+"}"+groupMemberInfo.getOriginalData());
			break;
				
		case "测试7"://有效
			System.out.println("获取群成员列表");
			GroupMemberList groupMemberList = sender.GETTER.getGroupMemberList(msg.getGroup());
			break;
		case "测试8"://有效
			System.out.println("获取公告列表");
			GroupNoteList groupNoteList = sender.GETTER.getGroupNoteList(msg.getGroup());
			break;
		case "测试9"://无效
			System.out.println("获取置顶公告");
			GroupTopNote groupTopNote = sender.GETTER.getGroupTopNote(msg.getGroup());
			break;
		case "测试10"://有效
			System.out.println("获取登录人的QQ信息");
			LoginQQInfo loginQQInfo = sender.GETTER.getLoginQQInfo();
			break;
		case "测试11"://有效
			System.out.println("获取共享文件列表");
			ShareList shareList = sender.GETTER.getShareList(msg.getGroup());
			break;
		case "测试12"://有效 
			System.out.println("获取魔神人信息");
			StrangerInfo strangerInfo = sender.GETTER.getStrangerInfo("936642284");
			System.out.println(strangerInfo.getQQ()+"}"+strangerInfo.getOriginalData());
			break;
		default:	
			break;
		}
	}
	*//****
	 * 事件-好友添加
	 *//*
	@Listen(MsgGetTypes.friendAdd)
	@Filter
	public void friendAdd(FriendAdd msg) {//友已经添加事件
		System.out.println("事件-好友添加");
	}
	
	*//****
	 *事件-管理员变动
	 *//*
	@Listen(MsgGetTypes.groupAdminChange)
	@Filter
	public void groupAdminChange(GroupAdminChange msg) {//GroupAdminChange 群管理员变动事件
		System.out.println("事件-管理员变动");
	}
	
	*//****
	 *事件-群成员增加
	 *//*
	@Listen(MsgGetTypes.groupMemberIncrease)
	@Filter
	public void groupMemberIncrease(GroupMemberIncrease msg) {//GroupMemberIncrease 群成员增加
		System.out.println("事件-群成员增加");
	}
	
	
	*//****
	 *事件-群成员减少
	 *//*
	@Listen(MsgGetTypes.groupMemberReduce)
	@Filter
	public void groupMemberReduce(GroupMemberReduce msg) {//GroupMemberReduce 群成员减少事件
		System.out.println("事件-群成员减少");
	}
	
	*//****
	 *请求-添加好友
	 *//*
	@Listen(MsgGetTypes.friendAddRequest)
	@Filter
	public void friendAddRequest(FriendAddRequest msg,MsgSender sender) {//	好友添加申请事件
		System.out.println("请求-添加好友");
		sender.SETTER.setFriendAddRequest(msg.getFlag(), "哈普",true);
	}
	
	
	*//****
	 *	请求-群添加
	 *//*
	@Listen(MsgGetTypes.groupAddRequest)
	@Filter
	public void groupAddRequest(GroupAddRequest msg,MsgSender sender,GroupAddRequestType requestType) {//	群添加请求事件
		System.out.println("请求-群添加");
		sender.SETTER.setGroupAddRequest(msg.getFlag(),requestType, false,"拒绝");
	}
}

*/